<!--
    @Title: LeaferRuler
    @Author  dudalei
    @Package 
    @Date  2024/10/14 15:50
    @description: 标尺线插件


-->
<script setup lang="ts">
import { Ruler } from 'leafer-x-ruler'
// 导入画布对象
const leaferApp = inject(LeaferInjectKey)

watchEffect(() => {
  if (leaferApp && leaferApp.value) {
    new Ruler(leaferApp.value)
  }
})
</script>

<template></template>

<style scoped lang="scss"></style>
